package com.zbkj.common.model.monitor;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @ClassName: ZfbMonitorOrder
 * @Description: 设备订单
 * @Author: fanbing
 * @Date: 2024/11/2 12:13
 * @Version: V1.0
 **/
@Data
public class ZfbMonitorOrder implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("单号")
    private String orderNo;
    @ApiModelProperty("支付金额")
    private BigDecimal payPrice;
    @ApiModelProperty("商品id")
    private Integer productId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;
    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("第三方单号")
    private String thirdOrderNo;

    @ApiModelProperty("订单状态 0-待支付 1-已支付")
    private Integer orderStatus;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("商户id")
    private Integer merchantId;

    private String merchantName;
    @ApiModelProperty("支付渠道：public-公众号,mini-小程序，h5-网页支付,yue-余额，wechatIos-微信Ios，wechatAndroid-微信Android,alipay-支付宝，alipayApp-支付宝App")
    private String payChannel;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("设备license")
    private String license;

    @ApiModelProperty(value = "支付方式:weixin,alipay,yue")
    private String payType;
}
